package com.seadragon.apps.doctorcard.model;

import java.util.ArrayList;
import java.util.List;

public class DoctorCardResult {
	private int status;
	private List<Integer> errors;
	private Object data;
	private Contact loginedContact;

	public DoctorCardResult(){
		errors= new ArrayList<Integer>();
	}
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}


	public List<Integer> getErrors() {
		return errors;
	}

	public void setErrors(List<Integer> errors) {
		this.errors = errors;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Contact getLoginedContact() {
		return loginedContact;
	}

	public void setLoginedContact(Contact loginedContact) {
		this.loginedContact = new Contact();
		this.loginedContact.setId(loginedContact.getId());
		this.loginedContact.setName(loginedContact.getName());
		this.loginedContact.setEnglishName(loginedContact.getEnglishName());
		this.loginedContact.setDoctorCardId(loginedContact.getDoctorCardId());
		this.loginedContact.setEmail(loginedContact.getEmail());
		this.loginedContact.setMobile(loginedContact.getMobile());
		this.loginedContact.setNumOfNewRequests(loginedContact.getNumOfNewRequests());
	}
	
	public void addErrorCode(int errorCode){
		errors.add(errorCode);
	}
}
